<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<link rel="stylesheet" href="//at.alicdn.com/t/font_342477_owwvl7ndgo.css?v=1.0.0">
<title>地址列表</title>
<script type='text/javascript' src='/static/js/jquery.min.js?v=0.12'></script>
<script type='text/javascript' src='/static/js/layer_mobile/layer.js'></script>
<script type='text/javascript' src='/static/js/common.js?v=0.1'></script>

<link rel="stylesheet" type="text/css" href="/static/js/mobileSelect/css/mobileSelect.css">
<script src="__JS__/data.mobileSelect.js?v=0.01" type="text/javascript"></script>
<!--http://oss.nawen1413.com/js/data.mobileSelect.js?v=0.01-->
<script src="/static/js/mobileSelect/js/mobileSelect.min.js?v=0.01" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="/static/css/common.css">
<link type="text/css" rel="stylesheet" href="/static/css/agent.css">
<link type="text/css" rel="stylesheet" href="/static/css/index.css">

<style>::-webkit-scrollbar { width: 12px !important; height: 12px !important; }::-webkit-scrollbar-track:vertical {  }::-webkit-scrollbar-thumb:vertical { background-color: rgba(136, 141, 152, 0.5) !important; border-radius: 10px !important; background-clip: content-box !important; border:2px solid transparent !important; } ::-webkit-scrollbar-track:horizontal {  }::-webkit-scrollbar-thumb:horizontal { background-color: rgba(136, 141, 152, 0.5) !important; border-radius: 10px !important; background-clip: content-box !important; border:2px solid transparent !important; } ::-webkit-resizer { display: none !important; }html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}.hairline-remove-right-bottom{border-bottom:0}.hairline-remove-left-top:before,.hairline-remove-right-bottom-bak:after,.hairline-remove-right-bottom:after{display:none}.am-fade-appear,.am-fade-enter{opacity:0}.am-fade-appear,.am-fade-enter,.am-fade-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-appear.am-fade-appear-active,.am-fade-enter.am-fade-enter-active{-webkit-animation-name:amFadeIn;animation-name:amFadeIn;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-leave.am-fade-leave-active{-webkit-animation-name:amFadeOut;animation-name:amFadeOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amFadeIn{0%{opacity:0}to{opacity:1}}@keyframes amFadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes amFadeOut{0%{opacity:1}to{opacity:0}}@keyframes amFadeOut{0%{opacity:1}to{opacity:0}}.am-slide-up-appear,.am-slide-up-enter{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}.am-slide-up-appear,.am-slide-up-enter,.am-slide-up-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-up-appear.am-slide-up-appear-active,.am-slide-up-enter.am-slide-up-enter-active{-webkit-animation-name:amSlideUpIn;animation-name:amSlideUpIn;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-up-leave.am-slide-up-leave-active{-webkit-animation-name:amSlideUpOut;animation-name:amSlideUpOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amSlideUpIn{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@keyframes amSlideUpIn{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@-webkit-keyframes amSlideUpOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes amSlideUpOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}.am.am-zoom-enter,.am.am-zoom-leave{display:block}.am-zoom-appear,.am-zoom-enter{opacity:0;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-timing-function:cubic-bezier(.18,.89,.32,1.28);animation-timing-function:cubic-bezier(.18,.89,.32,1.28);-webkit-animation-play-state:paused;animation-play-state:paused}.am-zoom-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-timing-function:cubic-bezier(.6,-.3,.74,.05);animation-timing-function:cubic-bezier(.6,-.3,.74,.05);-webkit-animation-play-state:paused;animation-play-state:paused}.am-zoom-appear.am-zoom-appear-active,.am-zoom-enter.am-zoom-enter-active{-webkit-animation-name:amZoomIn;animation-name:amZoomIn;-webkit-animation-play-state:running;animation-play-state:running}.am-zoom-leave.am-zoom-leave-active{-webkit-animation-name:amZoomOut;animation-name:amZoomOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amZoomIn{0%{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}}@keyframes amZoomIn{0%{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes amZoomOut{0%{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}}@keyframes amZoomOut{0%{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}}.am-slide-down-appear,.am-slide-down-enter{-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.am-slide-down-appear,.am-slide-down-enter,.am-slide-down-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-down-appear.am-slide-down-appear-active,.am-slide-down-enter.am-slide-down-enter-active{-webkit-animation-name:amSlideDownIn;animation-name:amSlideDownIn;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-down-leave.am-slide-down-leave-active{-webkit-animation-name:amSlideDownOut;animation-name:amSlideDownOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amSlideDownIn{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@keyframes amSlideDownIn{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@-webkit-keyframes amSlideDownOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes amSlideDownOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}*,:after,:before{-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font-size:50px}body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:32px;background-color:#f5f5f9}[contenteditable]{-webkit-user-select:auto!important}:focus,a{outline:none}a{background:transparent;text-decoration:none}.am-icon{fill:currentColor;background-size:cover;width:44px;height:44px}.am-icon-xxs{width:30px;height:30px}.am-icon-xs{width:36px;height:36px}.am-icon-sm{width:42px;height:42px}.am-icon-md{width:44px;height:44px}.am-icon-lg{width:72px;height:72px}.am-icon-loading{-webkit-animation:cirle-anim 1s linear infinite;animation:cirle-anim 1s linear infinite}@-webkit-keyframes cirle-anim{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes cirle-anim{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.hairline-remove-right-bottom{border-bottom:0}.hairline-remove-left-top:before,.hairline-remove-right-bottom-bak:after,.hairline-remove-right-bottom:after{display:none}.am-toast{position:fixed;width:100%;z-index:1999;font-size:28px;text-align:center}.am-toast>span{max-width:50%}.am-toast.am-toast-mask{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;left:0;top:0}.am-toast.am-toast-nomask{position:fixed;max-width:50%;width:auto;left:50%;top:50%}.am-toast.am-toast-nomask .am-toast-notice{-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.am-toast-notice-content .am-toast-text{min-width:1.2rem;border-radius:6px;color:#fff;background-color:rgba(58,58,58,.9);line-height:1.5;padding:18px 30px}.am-toast-notice-content .am-toast-text.am-toast-text-icon{border-radius:10px;padding:30px}.am-toast-notice-content .am-toast-text.am-toast-text-icon .am-toast-text-info{margin-top:12px}body{line-height:40px!important;font-size:26px!important}body,body.g-init-echart{font-family:Microsoft YaHei,Helvetica!important;color:#2e3136;background:#f5f6f7!important}body.g-init-echart{line-height:20px!important;font-size:13px!important}.g-am-init .am-tabs-bar{background:#fff!important}.g-am-init .am-tabs-tab{position:relative}.g-am-init .am-tabs-tab-active{color:#5c8dff!important}.g-am-init ._line-animated,.g-am-init .am-tabs-ink-bar{background-color:#5c8dff!important;z-index:1}.am-tabs-content .am-tabs-tabpane{background:none!important}.am-init-fixed .am-tabs-bar{position:fixed;top:0;width:100%;z-index:8}.g-am-init .am-list-content{font-size:26px!important;color:#333!important}.g-am-init .am-list-item{padding-left:20px!important;border-bottom:1px solid #efeff4}.g-am-init .am-list-item .am-list-line{padding-right:20px}.g-am-init .am-list-extra{font-size:26px!important}.g-am-init .am-input-control input,.g-am-init .am-input-label{font-size:26px!important;color:#4d4d4d!important}.g-am-init .am-input-control input::-webkit-input-placeholder{font-size:26px!important}.g-am-init .am-tabs-bar .am-tabs-tab{font-size:26px!important}.g-init-echart .g-am-init .am-list-content{font-size:13px!important;color:#333!important}.g-init-echart .g-am-init .am-list-item{padding-left:10px!important;border-bottom:1px solid #efeff4}.g-init-echart .g-am-init .am-list-item .am-list-line{padding-right:20px}.g-init-echart .g-am-init .am-list-extra{font-size:13px!important}.g-init-echart .g-am-init .am-input-control input,.g-init-echart .g-am-init .am-input-label{font-size:13px!important;color:#4d4d4d!important}.g-init-echart .g-am-init .am-input-control input::-webkit-input-placeholder{font-size:13px!important}.g-init-echart .g-am-init .am-tabs-bar .am-tabs-tab{font-size:13px!important}.c-share-back{position:fixed;width:100%;left:0;right:0;margin:auto;bottom:200px;z-index:9;padding-left:50px}.c-share-back .__content{float:left;width:70px}.c-share-back .__icon{float:right;border-radius:100%;text-align:center;background:rgba(0,0,0,.5);line-height:70px;height:70px;width:70px;margin-top:-70px;color:#fff;font-size:50px}.g-init-echart .c-share-back{position:fixed;width:100%;left:0;right:0;margin:auto;bottom:100px;z-index:9;padding-left:25px}.g-init-echart .c-share-back .__content{float:left;width:35px}.g-init-echart .c-share-back .__icon{float:right;border-radius:100%;text-align:center;background:rgba(0,0,0,.5);line-height:35px;height:35px;width:35px;margin-top:-35px;color:#fff;font-size:25px}.hairline-remove-right-bottom{border-bottom:0}.hairline-remove-left-top:before,.hairline-remove-right-bottom-bak:after,.hairline-remove-right-bottom:after{display:none}.am-picker-col{display:block;position:relative;height:476px;overflow:hidden;width:100%}.am-picker-col-content{position:absolute;left:0;top:0;width:100%;z-index:1;padding:204px 0}.am-picker-col-item{-ms-touch-action:manipulation;touch-action:manipulation;text-align:center;font-size:32px;height:68px;line-height:68px;color:#000;white-space:nowrap;text-overflow:ellipsis}.am-picker-col-item-selected{font-size:34px}.am-picker-col-mask{top:0;height:100%;margin:0 auto;background-image:-webkit-linear-gradient(top,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),-webkit-linear-gradient(bottom,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-image:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.95)),to(hsla(0,0%,100%,.6))),-webkit-gradient(linear,left bottom,left top,from(hsla(0,0%,100%,.95)),to(hsla(0,0%,100%,.6)));background-image:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 204px;background-repeat:no-repeat}.am-picker-col-indicator,.am-picker-col-mask{position:absolute;left:0;width:100%;z-index:3}.am-picker-col-indicator{-webkit-box-sizing:border-box;box-sizing:border-box;height:68px;top:204px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.am-picker{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.am-picker-item{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.hairline-remove-right-bottom{border-bottom:0}.hairline-remove-left-top:before,.hairline-remove-right-bottom-bak:after,.hairline-remove-right-bottom:after{display:none}.am-picker-popup{left:0;bottom:0;position:fixed;width:100%;background-color:#fff}.am-picker-popup-wrap{overflow:auto;-webkit-overflow-scrolling:touch;outline:0}.am-picker-popup-mask,.am-picker-popup-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000}.am-picker-popup-mask{background-color:rgba(0,0,0,.4);height:100%}.am-picker-popup-mask-hidden{display:none}.am-picker-popup-header{background-image:-webkit-linear-gradient(top,#e7e7e7,#e7e7e7,transparent,transparent);background-image:-webkit-gradient(linear,left top,left bottom,from(#e7e7e7),color-stop(#e7e7e7),color-stop(transparent),to(transparent));background-image:linear-gradient(180deg,#e7e7e7,#e7e7e7,transparent,transparent);background-position:bottom;background-size:100% 1px;background-repeat:no-repeat;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}.am-picker-popup-header:after{display:block;position:absolute;content:"";left:0;bottom:0;right:auto;top:auto;width:100%;border-bottom:1px solid #ddd}.am-picker-popup-header .am-picker-popup-header-right{text-align:right}.am-picker-popup-item{color:#108ee9;font-size:34px;padding:18px 30px;height:84px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.am-picker-popup-item-active{background-color:#ddd}.am-picker-popup-title{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;color:#000}.am-picker-popup .am-picker-popup-close{display:none}.am-picker-col{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.hairline-remove-right-bottom{border-bottom:0}.hairline-remove-left-top:before,.hairline-remove-right-bottom-bak:after,.hairline-remove-right-bottom:after{display:none}.am-list-header{padding:30px 30px 18px;font-size:28px;color:#888;display:inline-block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.am-list-footer{padding:18px 30px 30px;font-size:28px;color:#888}.am-list-body{position:relative;background-color:#fff;border-top:1px solid #ddd}.am-list-body:after,.am-list-body div:not(:last-child) .am-list-line:after{display:block;position:absolute;content:"";width:100%;border-bottom:1px solid #ddd}.am-list-body div:not(:last-child) .am-list-line:after{left:0;bottom:0;right:auto;top:auto}.am-list-item{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-left:30px;min-height:80px;background-color:#fff;vertical-align:middle;overflow:hidden;-webkit-transition:background-color .2s;transition:background-color .2s;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.am-list-item .am-list-ripple{position:absolute;background:transparent;display:inline-block;overflow:hidden;will-change:box-shadow,transform;-webkit-transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),-webkit-box-shadow .2s cubic-bezier(.4,0,1,1);transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),-webkit-box-shadow .2s cubic-bezier(.4,0,1,1);transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),-webkit-box-shadow .2s cubic-bezier(.4,0,1,1);outline:none;cursor:pointer;border-radius:100%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.am-list-item .am-list-ripple.am-list-ripple-animate{background-color:hsla(0,0%,62%,.2);-webkit-animation:ripple 1s linear;animation:ripple 1s linear}.am-list-item.am-list-item-top .am-list-line{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.am-list-item.am-list-item-top .am-list-line .am-list-arrow{margin-top:4px}.am-list-item.am-list-item-middle .am-list-line{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.am-list-item.am-list-item-bottom .am-list-line{-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.am-list-item.am-list-item-error .am-list-line .am-list-extra,.am-list-item.am-list-item-error .am-list-line .am-list-extra .am-list-brief{color:#f50}.am-list-item.am-list-item-active{background-color:#ddd}.am-list-item.am-list-item-disabled .am-list-line .am-list-content,.am-list-item.am-list-item-disabled .am-list-line .am-list-extra{color:#bbb}.am-list-item img{width:44px;height:44px;vertical-align:middle}.am-list-item .am-list-thumb:first-child{margin-right:30px}.am-list-item .am-list-thumb:last-child{margin-left:16px}.am-list-item .am-list-line{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;padding-right:30px;min-height:80px;overflow:hidden}.am-list-item .am-list-line .am-list-content{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#000;font-size:34px;text-align:left}.am-list-item .am-list-line .am-list-content,.am-list-item .am-list-line .am-list-extra{line-height:1.5;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:14px;padding-bottom:14px}.am-list-item .am-list-line .am-list-extra{-webkit-flex-basis:36%;-ms-flex-preferred-size:36%;flex-basis:36%;color:#888;font-size:32px;text-align:right}.am-list-item .am-list-line .am-list-brief,.am-list-item .am-list-line .am-list-title{width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.am-list-item .am-list-line .am-list-brief{color:#888;font-size:30px;line-height:1.5;margin-top:12px}.am-list-item .am-list-line .am-list-arrow{display:block;width:30px;height:30px;margin-left:16px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='26' viewBox='0 0 16 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 0L0 2l11.5 11L0 24l2 2 14-13z' fill='%23C7C7CC' fill-rule='evenodd'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:50% 50%;visibility:hidden}.am-list-item .am-list-line .am-list-arrow-horizontal{visibility:visible}.am-list-item .am-list-line .am-list-arrow-vertical{visibility:visible;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.am-list-item .am-list-line .am-list-arrow-vertical-up{visibility:visible;-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.am-list-item .am-list-line-multiple{padding:25px 30px 25px 0}.am-list-item .am-list-line-multiple .am-list-content,.am-list-item .am-list-line-multiple .am-list-extra{padding-top:0;padding-bottom:0}.am-list-item .am-list-line-wrap .am-list-content,.am-list-item .am-list-line-wrap .am-list-extra{white-space:normal}.am-list-item select{position:relative;display:block;width:100%;height:100%;padding:0;border:0;font-size:34px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}@-webkit-keyframes ripple{to{opacity:0;-webkit-transform:scale(2.5);transform:scale(2.5)}}@keyframes ripple{to{opacity:0;-webkit-transform:scale(2.5);transform:scale(2.5)}}

.layui-layer-loading .layui-layer-content{ width:120px; height:48px; background-size:cover; }
.layui-m-layer-msg .layui-m-layercont{ font-size:28px; line-height:44px; padding:20px 40px;}
.layui-m-layer2 .layui-m-layercont i{ background:#5c8dff; }
.no-after:after{ display:none!important; }
</style>
</head>
<body style="">

<div id="pages">

<div><div><div>

{volist name='list' id='v'}
<div class="g-bg-white g-m-b-20 address-item" data-id="{$v.tsid}">


<div class="g-bb g-pd" >
	<div class="g-flex g-jc-sb g-m-b-20">
		<span>收货人：{$v.consignee}</span>
		<span class="g-black-middle">{$v.phonenum}</span>
	</div>
	<p class="">收货地址：{$v.province} {$v.city} {$v.region} {$v.address}</p>
</div>
<div class="g-pd g-flex g-jc-sb address-edit-box">
	<div>
		{if condition="$v.isdefault eq 1"}
			{if condition="$onlyselect eq 1"}
			<span>默认地址</span>
			{else /}
			<i class="g-m-r iconfont icon-checked g-orange"></i><span>设置默认</span>
			{/if}
		{else /}
			{if condition="$onlyselect neq 1"}
			<i class="g-m-r iconfont icon-check g-black-light address-setdefault"></i><span class='address-setdefault'>设置默认</span>
			{/if}
		{/if}
	</div>
	{if condition="$onlyselect neq 1"}
	<div>
		<span class='address-edit'><i class="g-m-r iconfont icon-bianji g-black-light"></i>编辑</span>
		<span class="g-pd-l address-delete"><i class="g-m-r iconfont icon-delete g-black-light"></i>删除</span>
	</div>
	{/if}
</div>

</div>

{/volist}

<!--编辑地址-->
<div class="g-reset g-am-init g-reset-fixed address-edit-box" style='display:none;'>
<div class="g-bg-fixed"></div>
<div class="g-fixed g-row" style="z-index: 50;">
<p class="g-close-position "><span class='address-edit-title'>编辑收货地址</span><i class="iconfont icon-close"></i></p>
<div class="g-pd-lr" style="min-height:480px;max-height: 490px; overflow-y: hidden; overflow-x:hidden;">

<div class="am-list">
    <div class="am-list-body">
        <div class="common-input">
            <div class="g-bt _row __input" style="border-top:0;">
                <div class="__pd-l __col-3 g-text-over">收货人</div>
                <input type="text" class="__col-7" id="consignee" value="" placeholder="请填写收货人姓名" style="height: 40px; margin-top: 20px; margin-bottom: 20px; line-height: 40px;">
			</div>
        </div>
        <div class="international-mobile" style="position: relative;">
            <div class="common-input">
                <div class="g-bt _row __input">
                    <div class="__pd-l __col-3 g-text-over">手机号码</div>
                    <input type="tel" class="__col-7" id="phonenum" value="" maxlength="11" placeholder="请填写手机号码" style="height: 40px; margin-top: 20px; margin-bottom: 20px; line-height: 40px;">
				</div>
            </div>
            <span style="position: absolute; right: -18px; top: 4px;">
                <div>
                    <div class="am-list-item am-list-item-middle" style="position: absolute; right: 0px; top: -2px; width: 200px; border:0;">
                        <div class="am-list-line no-after">
                            <div class="am-list-extra">+86</div>
                            <div class="am-list-arrow am-list-arrow-horizontal"></div>
                        </div>
                        <div class="am-list-ripple" style="display: none;"></div>
                    </div>
                </div>
            </span>
        </div>
        <div>
            <div class="am-list-item am-list-item-middle g-bt" style="border-bottom:0;">
                <div class="am-list-line no-after" id='region_box'>
                    <div class="am-list-content">省市区</div>
                    <div class="am-list-extra" id="region_text"></div>
					<input  type="hidden" name ="province" id="province" />
					<input  type="hidden" name ="city" id="city" />
					<input  type="hidden" name ="region" id="region" />
                    <div class="am-list-arrow am-list-arrow-horizontal"></div>
                </div>
                <div class="am-list-ripple" style="display: none;"></div>
            </div>
        </div>
        <div class='g-bt' style="max-height: 115px; overflow: scroll;">
            <textarea type="text" class="g-m-t g-pd-l" placeholder="智能识别：请输入街道门牌信息，支持黏贴全地址" id="address" style="width: 100%;"></textarea>
		</div>
    </div>
</div>


	
	
</div>

<div style="height: 20px;"></div><div class="g-tc g-lh-80 g-bg-blue address-save">保存</div></div>

</div>


<script>
$(function(){
	$("input[type='text'],input[type='tel'],textarea").blur(function(){
		window.scroll(0,0);
	});
});
</script>
<!--编辑地址 End-->

</div>



<div class="g-btn-blue g-m-b-20 address-add" style="margin-top: 80px;">新增收货地址</div>

{if condition="$onlyselect neq 1"}
<div class="c-share-back">
	<div class="__content"><i class="iconfont icon-goback __icon"></i></div>
</div>
{/if}
</div>
</div>

</div>



<div id="ios-hack-view"></div>
<style>
.mobileSelect .content .btnBar {
    border-bottom: 2px solid #DCDCDC;
    font-size: 30px;
    height: 90px;
    line-height: 90px;
}
.mobileSelect .content .btnBar .cancel, .mobileSelect .content .btnBar .ensure {
    height: 90px;
    width: 110px;
}
.mobileSelect .content .panel .wheel {
    height: 400px;
}
.mobileSelect .content .panel .wheel .selectContainer li {
    font-size: 30px;
    height: 80px;
    line-height: 80px;
}
.mobileSelect .content .panel .wheels {
    width: 100%;
    height: 400px;
}
.mobileSelect .content .panel .selectLine {
    height: 80px;
    width: 100%;
    top: 160px;
    border-top: 2px solid #DCDCDC;
    border-bottom: 2px solid #DCDCDC;
}
.mobileSelect .content .panel .shadowMask{
	height:400px;
}
.mobileSelect .content .btnBar .title{ font-size:30px; }
</style>

<script>
var mobileSelect5 = new MobileSelect({
	trigger: '#region_text',
	title: '选择地区',
	wheels: [{
		data : SevStudio_Wap_Address
	}],
	position: [0,0,0],
	transitionEnd:function(indexArr, data){
		//console.log(indexArr,data);
	},
	callback:function(indexArr, data){
		var address='',province,city,region;
		data.forEach(function (item, index) {
			address = address+item.value;
			if(index==0){
				province = item.value;
			}else if(index==1){
				city = item.value;
			}else if(index==2){
				region = item.value;
			}
		});
		$("#region_text").html(address);
		$("[name='province']").val(province);
		$("[name='city']").val(city);
		$("[name='region']").val(region);
	}
});

var currentEditTSID = 0; //当前编辑的tsid
var onlyselect = <?php echo $onlyselect ? 'true' : 'false';?>;
$(function(){
	//关闭支付方式
	$('.icon-close').click(function(){
		$('.g-reset-fixed').css('display','none');
	});
	//点击打开添加
	$('.address-add').click(function(){
		currentEditTSID = 0;
		$('.address-edit-title').html('新建收货地址');
		$('#consignee').val('');
		$('#phonenum').val('');
		$('#region_text').html('');
		$("[name='province']").val('');
		$("[name='city']").val('');
		$("[name='region']").val('');
		$('#address').val('');
		
		//mobileSelect5.updateWheels(SevStudio_Wap_Address);
		//mobileSelect5.locatePosition(0,0);
		//mobileSelect5.locatePosition(1,0);
		//mobileSelect5.locatePosition(2,0);
		
		$('.g-reset-fixed').css('display','block');
	});
	//保存
	$('.address-save').click(function(){
		let postData = {
			action : 'add',
			tsid : 0,
			consignee : $('#consignee').val(),
			phonenum : $('#phonenum').val(),
			province : $("[name='province']").val(),
			city : $("[name='city']").val(),
			region : $("[name='region']").val(),
			address : $('#address').val(),
		};
		if(currentEditTSID > 0){
			postData.action = 'edit';
			postData.tsid = currentEditTSID;
		}
		if(postData.consignee == ''){
			layerMsg('收货人必填'); return;
		}
		if(postData.phonenum == ''){
			layerMsg('手机号码必填'); return;
		}
		if(postData.region == ''){
			layerMsg('请选择省市区'); return;
		}
		$.post("{:url('Address/save')}",postData,function(e){
			if(e.flag){
				layerMsg(postData.action == 'add' ? '添加成功':'保存成功',function(){
					location.reload();
				});
			}else{
				layerMsg(postData.action == 'add' ? '添加失败':'保存失败');
			}
		},'JSON');
	});
	//进入编辑
	$('.address-edit').click(function(){
		currentEditTSID = parseInt($(this).parents('.address-item').eq(0).attr('data-id'));
		$.get("{:url('Address/edit')}",{'tsid':currentEditTSID},function(e){
			if(e.flag){
				$('.address-edit-title').html('编辑收货地址');
				$('#consignee').val(e.data.consignee);
				$('#phonenum').val(e.data.phonenum);
				$('#region_text').html(e.data.province + ' ' + e.data.city + ' ' + e.data.region);
				$("[name='province']").val(e.data.province);
				$("[name='city']").val(e.data.city);
				$("[name='region']").val(e.data.region);
				$('#address').val(e.data.address);
				setPositionWithValue(e.data.province,e.data.city,e.data.region);
				$('.g-reset-fixed').css('display','block');
			}
		},'JSON');
	});
	//删除
	$('.address-delete').click(function(){
		let tsid = parseInt($(this).parents('.address-item').eq(0).attr('data-id'));
		$.post("{:url('Address/delete')}",{'tsid':tsid},function(e){
			if(e.flag){
				location.reload();
			}else{
				layerMsg(e.info);
			}
		},'JSON');
	});
	//设为默认
	$('.address-setdefault').click(function(){
		let tsid = parseInt($(this).parents('.address-item').eq(0).attr('data-id'));
		$.post("{:url('Address/setdefault')}",{'tsid':tsid},function(e){
			if(e.flag){
				location.reload();
			}else{
				layerMsg(e.info);
			}
		},'JSON');
	});
	//选择地址
	$('.address-item').click(function(){
		if(!onlyselect){ return;}
		let tsid = parseInt($(this).attr('data-id'));
		$.get("{:url('Address/edit')}",{'tsid':tsid},function(e){
			if(e.flag && typeof parent.afterSelectAddress == 'function'){
				parent.afterSelectAddress(e.data);
			}
		},'JSON');
	});
	//粘贴地址识别
	$("#address").bind("paste",function(e){
		if(typeof e.originalEvent == 'undefined'){
			layerMsg('获取失败，请手动输入'); return;
		}
		if(typeof e.originalEvent.clipboardData == 'undefined'){
			layerMsg('获取失败，请手动输入'); return;
		}
		var pastedData = e.originalEvent.clipboardData.getData('text');
		if(pastedData.length < 10){
			layerMsg('地址信息不正确'); return;
		}
		AI_Address(pastedData);
    });
});

function AI_Address(content){
	$.post("{:url('Address/shibie')}",{'content':content},function(e){
		if(e.flag){
			let success = setPositionWithValue(e.data.province,e.data.city,e.data.county,true);
			if(success){
				$('#region_text').html(e.data.province + ' ' + e.data.city + ' ' + e.data.county);
				$("[name='province']").val(e.data.province);
				$("[name='city']").val(e.data.city);
				$("[name='region']").val(e.data.county);
				$('#address').val(e.data.address);
				$('#consignee').val(e.data.name);
				$('#phonenum').val(e.data.phone);
			}
		}
	},'JSON');
}

//根据中文省市县计算滚轮并定位
function setPositionWithValue(province,city,region,mohu){
	let i=-1,j=-1,k = -1;
	for(let a=0;a<SevStudio_Wap_Address.length;a++){
		if(mohu){
			//模糊匹配省份
			if(SevStudio_Wap_Address[a].value.substr(0,2) == province.substr(0,2)){
				i=a;
				break;
			}
		}else{
			if(SevStudio_Wap_Address[a].value == province){
				i=a;
				break;
			}
		}
	}
	if(i != -1){
		for(let a=0;a<SevStudio_Wap_Address[i].childs.length;a++){
			if(mohu){
				if(SevStudio_Wap_Address[i].childs[a].value.substr(0,2) == city.substr(0,2)){
					j=a;
					break;
				}
			}else{
				if(SevStudio_Wap_Address[i].childs[a].value == city){
					j=a;
					break;
				}
			}
		}
	}
	if(j != -1){
		for(let a=0;a<SevStudio_Wap_Address[i].childs[j].childs.length;a++){
			if(mohu){
				if(SevStudio_Wap_Address[i].childs[j].childs[a].value.substr(0,2) == region.substr(0,2)){
					k=a;
					break;
				}
			}else{
				if(SevStudio_Wap_Address[i].childs[j].childs[a].value == region){
					k=a;
					break;
				}
			}
		}
	}
	let not_found = [];
	if(i != -1){
		mobileSelect5.locatePosition(0,i);
	}else{
		//没找到省份
		not_found.push(province);
	}
	if(j != -1){
		mobileSelect5.locatePosition(1,j);
	}else{
		not_found.push(city);
	}
	if(k != -1){
		mobileSelect5.locatePosition(2,k);
	}else{
		not_found.push(region);
	}
	if(mohu && not_found.length > 0){
		//保存匹配失败的地址
		//识别结果跟滚轮对不上
		$.post("{:url('Address/collect')}",{'data' : not_found.join('-')},function(e){},'JSON');
	}
	
	return i != -1 && j != -1 && k != -1;
}
</script>


</body>
</html>